const Koa = require('koa')
const app = new Koa()

const cors = require('koa2-cors')
const bodyParser = require('koa-bodyparser')

const indexRouter = require('./route/index')

app.use(bodyParser())

app.use(cors({
    origin:'*'
}))
//hhhhhhh

app.use(indexRouter.routes())
app.listen(3000,()=>{
    console.log('端口3000');
})